package com.bc.bcapi.dao;

import com.bc.bcmodel.domain.T_OrderModel;
import com.bc.bcmodel.req.MngOrderListReq;
import com.bc.bcmodel.req.OrderExportReq;
import com.bc.bcmodel.resp.*;
import com.github.pagehelper.Page;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

/**
 * @Name T_OrderMapper * @Description TODO * @Author generation * @Date 2018/8/14 15:26:24 * @Version 1.0
 **/
public interface T_OrderMapper extends BaseMapper<T_OrderModel> {
    int getDistributionCount(String pid);

    BigDecimal getExistsFinal_sell_count(String pid);

    //BigDecimal eth_count, String buyer_user_id
    int deduction_buyer_eth(HashMap<String, Object> req);

    //int buy_count, String seller_user_id)
    int deduction_seller_coin(HashMap<String, Object> req);

    Page<OrderExportBigDecimalBaseResp> getOrderList(OrderExportReq req);

    OrderCounterResp getOrderListCounter(OrderExportReq req);

    List<MngOrderListResp> getList(MngOrderListReq req);
}